<?php
/*
 * @ https://EasyToYou.eu - IonCube v11 Decoder Online
 * @ PHP 7.2 & 7.3
 * @ Decoder version: 1.1.6
 * @ Release: 10/08/2022
 */

// Decoded file for php version 71.
class PHPExcel_CachedObjectStorage_Memory extends PHPExcel_CachedObjectStorage_CacheBase implements PHPExcel_CachedObjectStorage_ICache
{
    protected function storeData()
    {
    }
    public function addCacheData($pCoord, PHPExcel_Cell $cell)
    {
        $this->cellCache[$pCoord] = $cell;
        $this->currentObjectID = $pCoord;
        return $cell;
    }
    public function getCacheData($pCoord)
    {
        if(!isset($this->cellCache[$pCoord])) {
            $this->currentObjectID = NULL;
        } else {
            $this->currentObjectID = $pCoord;
            return $this->cellCache[$pCoord];
        }
    }
    public function copyCellCollection(PHPExcel_Worksheet $parent)
    {
        parent::copyCellCollection($parent);
        $newCollection = [];
        foreach ($this->cellCache as $k => &$cell) {
            $newCollection[$k] = clone $cell;
            $newCollection[$k]->attach($this);
        }
        $this->cellCache = $newCollection;
    }
    public function unsetWorksheetCells()
    {
        foreach ($this->cellCache as $k => &$cell) {
            $cell->detach();
            $this->cellCache[$k] = NULL;
        }
        unset($cell);
        $this->cellCache = [];
        $this->parent = NULL;
    }
}

?>